// 账号判定
var loginByTel_name=document.querySelector('#loginName');
var sp1=document.querySelector('#sp1');
function getAccount() {
    if (loginByTel_name.value==="" || loginByTel_name.value==null){
        sp1.style.display="inline-block";
        return false;
    }else if (!/^[1][3,4,5,7,8][0-9]{9}$/.test(loginByTel_name.value)) {
        sp1.innerText="账号格式错误";
        sp1.style.display="inline-block";
        return false;
    }else {
        sp1.style.display="none";
        return true;
    }
}
//验证码判定
var sp2=document.querySelector('#sp2');
var loginByTel_regist=document.querySelector('#loginPsd');
function  getRegist() {
    if (loginByTel_regist.value==="" || loginByTel_regist.value==null){
        sp2.style.display="inline-block";
        return false;
    }else {
        sp2.style.display="none";
        return true;
    }
}


document.querySelector("#login-btn").onclick = function () {
    localStorage.setItem("user", "123");
    window.location.href = "../job/zhaopin_index.html";
};